package com.hu.ta.assignment5.beans;

import java.util.HashMap;

public class WordPos extends HashMap<String, PosProbabilities> {

	private static final long serialVersionUID = 7163304430032358327L;
	private final PosProbabilities empty = new PosProbabilities();

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.util.HashMap#get(java.lang.Object)
	 */
	@Override
	public PosProbabilities get(Object arg0) {
		if (containsKey(arg0)) {
			return super.get(arg0);
		} else {
			return empty;
		}
	}
}
